package com.smiier.skin.net;

import android.content.Context;
import cn.o.app.json.JsonDate;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.RelationshipSetTask.RelationshipSetRequest;
import com.smiier.skin.net.RelationshipSetTask.RelationshipSetResponse;
import com.smiier.skin.net.entity.RelationShip;
import com.smiier.skin.util.GlobalSettings;

public class RelationshipSetTask extends
		NetTask<RelationshipSetRequest, RelationshipSetResponse> {
	public static class RelationshipSetRequest extends ORequest {
		public long rsuid;
		public String token;
		public Integer RSSource;
		public Integer IS_RSAcceptMSG;
		public String Name;
		public String Mobile;

		public JsonDate Visiting_Time;
		public String Diagnose;
		public String Condition;
		public String appname = Constant.APP_NAME;
	}

	public static class RelationshipSetResponse extends OResponse {
		public RelationShip Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=RelationShip.Set";
		mRequestMethod = METHOD_GET;
	}
}
